<template>
  <div class="home">
    <!-- 主页布局 -->
    <el-container class="main_container">
      <!-- 头部区域 -->
      <el-header>
        <Head-home></Head-home>
      </el-header>
      <!-- 主体区域 -->
      <el-container>
        <!-- 侧边栏区域 -->
        <el-aside width="300px">
              <Aside-home></Aside-home>
        </el-aside>
        <!-- 右侧区域 -->
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
  import HeadHome from "@/components/Home/Header.vue"
  import AsideHome from "../components/Home/Aside.vue"
  export default {
    name: 'Home',
    data() {
      return {
        user_data: []
      }
    },
    components: {
      HeadHome,
      AsideHome
    }
  }
</script>

<style scoped>
  .el-header {
    height: auto;
    background: linear-gradient(to right, #409EFF, #67C23A);
    text-align: center;
    line-height: 60px;
  }

  .el-aside {
    background-color: #333744;
    color: #333;
    text-align: center;
    line-height: 200px;
  }

  .home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .main_container {
    height: 100%;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }

  body>.el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>
